import com.mongodb.DBCollection;
import com.mongodb.DBObject;

/**
 * CRUD (CREATE READ UPDATE DELETE)
 * @author Code4LifeVn
 */
public interface IMongoDAO<T> {
    //CREATE
    void insert(T object);

    //READ
    T readItem(DBObject object);

    //UPDATE
    void update(T oldPbject, T newObj);

    //DELETE
    void delete(T object);

    //SELECT
    T findDocumentById(String _id);

    DBCollection getDBCollection();
}
